#include <iostream>
#include <memory>
#include "UdpServer.hpp"
using namespace std;

void Usage(const string& process) {
    cout << "Usage:\n\t" << process << " local_port\n" << endl;
}

int main(int argc, char* args[]) {
    if (argc != 2) {
        Usage(args[0]);
        return Usage_Erro;
    }
    uint16_t port = atoi(args[1]);
    UdpServer* ps = new UdpServer(port);
    ps->Init();
    ps->Start();
    return 0;
}